package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色权限中间信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_role_menu")
public class RoleMenu implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色
     */
    @TableField(value = "role_id")
    private Integer roleId;

    /**
     * 权限
     */
    @TableField(value = "menu_id")
    private Integer menuId;

    private static final long serialVersionUID = 1L;
}